package tools

import "github.com/gin-gonic/gin"

func ErrorResp(c *gin.Context, code int, msg string) {
	c.JSON(200, gin.H{
		"code":    code,
		"message": msg,
	})
}

func SuccessResp(c *gin.Context, msg string, data any) {
	c.JSON(200, gin.H{
		"code":    200,
		"message": msg,
		"data":    data,
	})
}
